<!DOCTYPE html>
<html>
<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/direction-upright-002.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT -->
<head><title>'text-orientation: upright' forces used 'direction' to LTR in vertical typographic modes</title>
<link href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation" rel="help">
<link href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help">
<link href="https://www.w3.org/TR/css-grid-1/#grid-auto-flow-property" rel="help">
<link href="https://www.w3.org/TR/css-ruby-1/#bidi" rel="help">
<link href="http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/reference/direction-upright-002.htm" rel="match">

<style>
  body > div {
    border: solid silver;
    float: left;
    margin: 1em;
    border-inline-start-color: orange;
    border-block-start-color: aqua;
    border-inline-end-color: lime;
    border-block-end-color: yellow;
  }
  colgroup:first-child { background: fuchsia; }
  col:last-child { background: purple; }
  .flex { display: flex; }
  .grid { grid-template-columns: auto auto }
  hr { clear: both }
</style>

</head><body><p>Test passes if both rows of boxes are identical (coloring, order, orientation, and arrangement of contents).

<!-- test -->

</p><div style="writing-mode: vertical-rl; text-orientation: upright" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: vertical-lr; text-orientation: upright" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<!-- control -->

<div style="text-orientation: upright" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: sideways-rl; text-orientation: upright" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: sideways-lr; text-orientation: upright" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<hr>

<!-- reference -->

<div style="writing-mode: vertical-rl; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: vertical-lr; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<div dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: sideways-rl" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: sideways-lr" dir="rtl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tbody><tr><td>A</td><td>B</td><td>C
  </td></tr></tbody></table>
  <div class="flex">A <span>B</span></div>
  <div class="grid">A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div></body>
<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/direction-upright-002.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT -->
</html>